package com.ebs.md.fxmonitor.marketmonitor.model;

/**
 * Perforce Revision:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/model/TOBState.java $
 *  $Revision: #2 $  $Change: 114683 $  $DateTime: 2012/09/05 13:35:56 $  $Author: Arik.Sher $
 */

import com.ebs.md.api.BookSide;
import com.ebs.md.api.Rate;
import com.ebs.md.api.product.PairProduct;


/**
 * TOP - Top(best) Of Book
 */
public class TOBState
extends    AbsOBState
{
	// gened by Eclipse
	private static final long serialVersionUID = 2051885332271497931L;

	public TOBState(long timestamp, PairProduct pair, BookSide side,
			Rate thisSideRate, Rate otherSideRate, Rate thisSidePrevRate) {
		super(timestamp, pair, side, thisSideRate, otherSideRate, thisSidePrevRate);
	}

	public Rate getBestBid() {
		return  getBid();
	}

	public Rate getBestOffer() {
		return  getOffer();
	}
	
	public Rate getPreviousBestBid() {
		return  getPreviousBid();
	}
	
	public Rate getPreviousBestOffer() {
		return  getPreviousOffer();
	}
	
	@Override
	protected String additionalToString() {
		return 
			  ", bestBid=" + getBestBid()
			+ ", bestOffer=" + getBestOffer()
			+ ", prevBest(atSide)=" + thisSidePrevRate
		;
	}

}
